import axios from "./axios";

export const nowPlayingQuery = (params) => {
  return axios({
    method: "get",
    url: "https://m.maizuo.com/gateway",
    params,
    headers: {
      "X-Host": "mall.film-ticket.film.list",
    },
  });
};

export const comingSoonQuery = (params) => {
  return axios({
    method: "get",
    url: "https://m.maizuo.com/gateway",
    params,
    headers: {
      "X-Host": "mall.film-ticket.film.list",
    },
  });
};

export const filmDetail = (params) => {
  return axios({
    method: "get",
    url: "https://m.maizuo.com/gateway",
    params,
    headers: {
      "X-Host": "mall.film-ticket.film.info",
    },
  });
};
export const filmBuy = (params) => {
  return axios({
    method: "get",
    url: "https://m.maizuo.com/gateway/",
    params,
    headers: {
      "X-Host": "mall.film-ticket.cinema.film-show-cinema",
    },
  });
};

export const cinemaQuery = (formData) => {
  return axios({
    method: "post",
    url: "https://m.maizuo.com/gateway?k=2375961",
    data:formData,
    headers: {
      "X-Host": "mall.film-ticket.cinema.batch-cinema",
    },
  });
};
